package com.example.perpetualcalendar.domain.usecase;

import com.example.perpetualcalendar.data.network.SchedulerProvider;
import com.example.perpetualcalendar.domain.entity.Calendar;
import com.example.perpetualcalendar.domain.repository.ApiCalendar;

import io.reactivex.Observable;

public class CalendarUseCase extends UseCase implements ApiCalendar {

    private final ApiCalendar apiCalendar;

    public CalendarUseCase(SchedulerProvider schedulerProvider, ApiCalendar apiCalendar) {
        super(schedulerProvider);
        this.apiCalendar = apiCalendar;
    }

    @Override
    public Observable<Calendar> calendarApi(String date) {
        return apiCalendar.calendarApi(date);
    }

}
